package net.dengzixu.java.homework.period19;

/**
 * @author Deng Zixu <admin@dengzixu.com>
 */
public class Goods {
    // 商品名称
    private String name;

    //产地
    private String origin;

    // 价格
    private String price;

    public Goods(String name, String origin, String price) {
        this.name = name;
        this.origin = origin;
        this.price = price;
    }

    public void print() {
        System.out.printf("[%s] 产地: %s, 价格: %s", this.name, this.origin, this.price);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }
}
